package com.qiuling.iot.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 0:46 2020/2/13
 * @Modified By：
 */
@Data
public class EquipmentInfoUpdateReqVO {

    @NotBlank(message = "设备id不能为空")
    @ApiModelProperty(value = "设备id")
    private String id;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @NotNull(message = "设备传输协议不能为空")
    @ApiModelProperty(value = "传输协议 1、tcp, 2、mqqt")
    private Integer transportProtocols;

    @NotBlank(message = "父级id 一级为 0")
    @ApiModelProperty(value = "父级id")
    private String pid;

    @ApiModelProperty(value = "设备状态 1、在线, 0、离线")
    private Integer equipmentStatus;

    @ApiModelProperty(value = "开启状态 1、开启, 0、关闭")
    private Integer opened;

    @ApiModelProperty(value = "是否禁用 1、启用 0、禁用")
    private Integer disabled;
}
